package com.example.myapplication;

public class Review {

    private int reviewId;
    private int transactionId;
    private int rating;
    private String comment;
    private String productName;

    // 构造函数
    public Review() {}

    public Review(int reviewId, int transactionId, int rating, String comment, String productName) {
        this.reviewId = reviewId;
        this.transactionId = transactionId;
        this.rating = rating;
        this.comment = comment;
        this.productName = productName;
    }

    // Getter 和 Setter 方法
    public int getReviewId() {
        return reviewId;
    }

    public void setReviewId(int reviewId) {
        this.reviewId = reviewId;
    }

    public int getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(int transactionId) {
        this.transactionId = transactionId;
    }

    public int getRating() {
        return rating;
    }

    public void setRating(int rating) {
        this.rating = rating;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }
}
